﻿/*
Desc:MediatR事件处理器
Author:Joker
CreatedDate:24-02-02
*/

using ElectronicMall.Domain.Abstractions.Events;
using MediatR;

namespace ElectronicMall.Domain.Buses.MediatR.Events
{
    /// <summary>
    /// MediatR事件处理器基类
    /// </summary>
    public abstract class MediatREventHandler<TEvent> : IEventHandler<TEvent>, INotificationHandler<TEvent>
     where TEvent : MediatREvent
    {
        public abstract Task Handle(TEvent @event, CancellationToken cancellationToken);
    }
}
